package com.du.annulrview;

import android.app.Activity;
import android.graphics.Color;
import android.os.Bundle;

import java.util.ArrayList;

public class SplitAnnulrViewActivity extends Activity {
    private SplitAnnulrView sav;
    private ArrayList<ProgressBean> progressList;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.split_layout);
        sav = findViewById(R.id.splitannulrview);
        progressList = new ArrayList<>();
        ProgressBean pb1 = new ProgressBean(20f , Color.RED);
        progressList.add(pb1);
        ProgressBean pb2 = new ProgressBean(30f , Color.GREEN);
        progressList.add(pb2);
        ProgressBean pb3 = new ProgressBean(30f , Color.BLUE);
        progressList.add(pb3);
        ProgressBean pb4 = new ProgressBean(20f , Color.MAGENTA);
        progressList.add(pb4);
        sav.setProgressBeans(progressList);
    }
}
